﻿using FileData.Currency;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace FileData.ViewManger
{
    class ViewRep
    {
        public void AutoSelect(GroupBox GroupBoxTemp, string ModeText) {

            switch (ModeText) {
                case "规则辅助":
                  new Groupboxhelper().Replace(GroupBoxTemp,new RuleControl());
                    break;
                case "文件辅助":
                    new Groupboxhelper().Replace(GroupBoxTemp, new FileControl());
                    break;
                case "文本替换":
                    new Groupboxhelper().Replace(GroupBoxTemp, new DataControl());
                    break;
            }

        }
    }
}
